home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
BBS in a Box 7
/
BBS in a Box - Macintosh - Volume VII (BBS in a Box) (January 1993).iso
/
Files
/
Hyper
/
C-Cl
/
Cardz.cpt
/
Hyper Cards
/
card_3925.txt
< prev
next >
Wrap
Text File
|
1988-01-10
|
13KB
|
570 lines
-- card: 3925 from stack: in
-- bmap block id: 0
-- flags: 4000
-- background id: 3405
-- name: Master
-- part 65 (field)
-- low flags: 80
-- high flags: 0001
-- rect: left=144 top=66 right=330 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 128
-- text size: 24
-- style flags: 0
-- line height: 32
-- part name: greeting
-- part 4 (field)
-- low flags: 01
-- high flags: 0004
-- rect: left=3 top=23 right=202 bottom=142
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Control
-- part 12 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=12 top=111 right=145 bottom=47
-- title width / last selected line: 0
-- icon id / first selected line: 31975 / 31975
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Menus
----- HyperTalk script -----
on mouseUp
if visible of bkgnd field toggle is false then
show menuBar
show bkgnd field toggle
else
hide menuBar
hide bkgnd field toggle
end if
end mouseUp
-- part 20 (field)
-- low flags: 81
-- high flags: 0001
-- rect: left=203 top=24 right=65 bottom=408
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: hidetitle
-- part 23 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=88 top=82 right=102 bottom=127
-- title width / last selected line: 0
-- icon id / first selected line: 17794 / 17794
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Print
----- HyperTalk script -----
on mouseUp
play boing
hide menuBar
hide bkgnd field hidehelp1
hide bkgnd field hidehelp2
show bkgnd field hidehelp3
show bkgnd field bottomrule
answer "Would you like to print the help?" with "Chooser" or "Yes" or "No"
if it is "Chooser" then domenu "Chooser"
if it is "Yes" then
set cursor to 4
print card
end if
show bkgnd field hidehelp1
show bkgnd field hidehelp2
hide bkgnd field hidehelp3
hide bkgnd field bottomrule
end mouseUp
-- part 41 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=17 top=75 right=107 bottom=42
-- title width / last selected line: 0
-- icon id / first selected line: 1002 / 1002
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: New
----- HyperTalk script -----
on mouseDown
go to card 2
click at loc of card button "New"
end mouseDown
-- part 42 (button)
-- low flags: 00
-- high flags: A000
-- rect: left=453 top=16 right=65 bottom=512
-- title width / last selected line: 0
-- icon id / first selected line: 24829 / 24829
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Hyper Cards
----- HyperTalk script -----
on mouseUp
visual effect iris open to white
go to stack "Hyper Cards"
end mouseUp
-- part 44 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=58 top=78 right=104 bottom=78
-- title width / last selected line: 65535
-- icon id / first selected line: -15797 / 49739
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Delete
----- HyperTalk script -----
on mouseUp
set lockScreen to true
answer "You can't delete the Master cards." with "OK"
set lockScreen to false
end mouseUp
-- part 49 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=15 top=149 right=172 bottom=44
-- title width / last selected line: 0
-- icon id / first selected line: 21700 / 21700
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
global temp
visual effect iris close to black
dolist "Go...", "Cancel", temp,1
get the result
if it is not empty then
if item 2 of it <> "Finder" then
go to stack item 2 of it
else
finder
end if
end if
end mouseUp
on finder
answer "Are you using MultiFinder?" with "Yes" or "No"
if it is "No" then
domenu quit
else
domenu finder
end if
end finder
-- part 59 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=50 top=113 right=139 bottom=77
-- title width / last selected line: 0
-- icon id / first selected line: 1014 / 1014
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Prev
----- HyperTalk script -----
on mouseUp
set lockscreen to true
set cursor to 4
go prev
get first line of card field "control"
put it into cardName
repeat for the number of cards
if the name of this card contains "Master" then exit mouseUp
if first line of card field "control" contains cardName then
if the name of this card contains "1 Fold" then
oneFold
else
twoFold
end if
end if
end repeat
end mouseUp
on oneFold
put "false" into it
repeat until it contains "true"
if first word of last line of card field "control" <> "Front" then
go prev
else
exit oneFold
end if
end repeat
set lockscreen to false
end oneFold
on twoFold
put "false" into it
repeat until it contains "true"
if last line of card field "control" <> "Inside Right-Left" then
go prev
else
put "true" into it
end if
end repeat
set lockscreen to false
end twoFold
-- part 60 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=108 top=113 right=139 bottom=135
-- title width / last selected line: 0
-- icon id / first selected line: 1013 / 1013
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Next
----- HyperTalk script -----
on mouseUp
go to third card
end mouseUp
-- part 66 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=79 top=113 right=139 bottom=106
-- title width / last selected line: 0
-- icon id / first selected line: 1015 / 1015
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Scroll
----- HyperTalk script -----
on mouseUp
global list1,list2
set lockScreen to true
if the name of this card contains "Master" then
play doo tempo 300 c c
put "There are no other segments in the master card. Going to next."
set lockscreen to false
visual effect venetian blinds
go next
hide msg
exit mouseUp
end if
if the name of this card contains "1 Fold" then
oneFold
else
twoFold
end if
end mouseUp
on oneFold
global list1
doList "Go", "Cancel", list1,1
get the result
if it is not empty then
set cursor to 4
put item 2 of it into chosen
get first line of card field "control"
put it into cardName
set lockscreen to true
repeat for the number of cards
if (first line of card field "Control" = cardName and last line of card field "Control" = chosen) then
set lockscreen to false
exit oneFold
else
go next
end if
end repeat
play harpsichord h6
put "Something's wrong. I couldn't find that panel!"
go to first card
wait 2 seconds
play harpsichord h5
hide msg
end if
set lockscreen to false
end oneFold
on twoFold
set lockscreen to false
if card field "Control" contains "Right-Left" then
visual effect scroll up
go next
if card field "Control" contains "Back-Front" then
exit twoFold
end if
else
visual effect scroll down
go prev
if card field "Control" contains "Right-Left" then exit twoFold
end if
play harpsichord h6
put "Something's wrong. I couldn't find that panel!"
go to first card
wait 2 seconds
play harpsichord h5
hide msg
end twoFold
-- part 67 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=94 top=145 right=177 bottom=119
-- title width / last selected line: 0
-- icon id / first selected line: 20486 / 20486
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Note
----- HyperTalk script -----
on mouseUp
if the name of this card contains "Master" then
play harpsichord tempo 300 h6 h5 h6
answer "You can't enter notes on the Master card..." with "Okay"
if it is "Okay" then exit mouseUp
end if
if (the visible of card field "note" is true or the visible of card field "lefttext" is true or the visible of card field "righttext" is true) then
answer "Clear and hide note?" with "Yes" or "No"
if it is "Yes" then
put "" into card field "note"
hide card field "note"
put "" into card field "lefttext"
hide card field "lefttext"
put "" into card field "righttext"
hide card field "righttext"
exit mouseUp
else
exit mouseUp
end if
else
if the name of this card contains "1 Fold" then
oneFold
else
twoFold
end if
end if
end mouseUp
on oneFold
show card field "note"
play harpsichord c
put "Please choose a font..."
click at loc of card field "note"
domenu "Text Style..."
put ""
hide msg
answer "Do you want to show lines?" with "Yes" or "No"
if it is "Yes" then
set showLines of card field "note" to true
else
set showLines of card field "note" to false
end if
end oneFold
on twoFold
show card field "lefttext"
show card field "righttext"
play harpsichord C
put "Please choose a font for the left panel..."
tabKey
click at loc of card field "lefttext"
domenu "Text Style..."
answer "Do you want to show lines?" with "Yes" or "No"
if it is "Yes" then
set showLines of card field "lefttext" to true
else
set showLines of card field "lefttext" to false
end if
tabKey
play harpsichord G
put "And now the right panel..."
click at loc of card field "righttext"
domenu "Text Style..."
answer "Do you want to show lines?" with "Yes" or "No"
if it is "Yes" then
set showLines of card field "righttext" to true
else
set showLines of card field "righttext" to false
end if
put ""
hide msg
end twoFold
-- part 68 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=91 top=142 right=181 bottom=123
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: texthelp
----- HyperTalk script -----
on mouseUp
put "Here's the text help!"
end mouseUp
-- part 70 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=52 top=147 right=173 bottom=78
-- title width / last selected line: 0
-- icon id / first selected line: 26635 / 26635
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Help
----- HyperTalk script -----
on mouseUp
hide menuBar
show card field greeting
wait 2 seconds
hide card field greeting
hide bkgnd field hidehelp1
hide bkgnd field hidehelp2
show bkgnd field hidehelp3
show bkgnd field blinker
repeat until the mouse is down
put "Click to continue..." into bkgnd field blinker
play doo tempo 200 a3W a#3Q a3Q g#3Q a3Q a#3W b3Q c4H. d4H e4Q f4Q g4Q f4Q e4Q d4Q c4W f3Q g3Q a3H a3H a3Q d4H c4Q f4H f4H f3Q g3Q a3H a3H d4Q. e3E e3Q e3Q f3W
put "" into bkgnd field blinker
end repeat
answer "Would you like to print the help?" with "Chooser" or "Yes" or "No"
if it is "Chooser" then domenu "Chooser"
if it is "Yes" then
set cursor to 4
print card
end if
show bkgnd field hidehelp1
show bkgnd field hidehelp2
hide bkgnd field hidehelp3
hide bkgnd field blinker
end mouseUp
-- part contents for card part 4
----- text -----
Hyper Cards 1.0
Help Card
12/25/87
-- part contents for background part 7
----- text -----
The Hyper Cards stack gives you an easy way to create greeting cards on your ImageWriter or LaserWriter printer, using ordinary 8.5" x 11" paper.
Keyboard Controls:
• Press the Tab key to toggle the control panel on/off.
• Press the Enter key to toggle the rulers on/off.
• Press the Left/Right keyboard arrow keys operate the
left/right arrows on the control panel.
• Press the Up/Down arrow keys to operate the round,
"card segment" button on the control panel.
• Option-Enter to see more help on this stack.
Commercial sale of this stack is prohibited. All rights reserved.
-- part contents for background part 10
----- text -----
Commercial sale of this stack is prohibited without the author's permission.
-- part contents for background part 14
----- text -----
Hyper Cards
-- part contents for background part 15
----- text -----
by David K. Simerly © 1987
-- part contents for background part 8
----- text -----
Thanks to
James L. Paul for the HyperList XCMD, and to BMUG for the PopUpMenu XCMD.
-- part contents for card part 65
----- text -----
Merry Christmas to All HyperCard Users!
Have a Great New Year!